package com.abing.template.template1.impl;


import com.abing.template.template1.AbstractPayCallbackTemplate;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class UnionPayCallbackTemplate extends AbstractPayCallbackTemplate {
    @Override
    protected Map<String, String> verifySignature() {

        Map<String,String> map=new HashMap<>();
        map.put("code","200");
        return map;
    }

    @Override
    protected String asyncService(Map<String, String> verifySignature) {
        return resultSuccess();
    }

    @Override
    protected String resultFail() {
        return "银联支付调用失败";
    }

    @Override
    protected String resultSuccess() {
        return "银联支付调用成功";
    }
}
